/*
Copyright (C) 2008, 2009 Henrik Naess

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/

using System;
using System.IO;

namespace MatrixPlugin.Constants
{
    /// <summary>
    /// Constants that are used for preferences file for the plugin
    /// </summary>
    internal static class Preferences
    {
        /// <summary>Stopped time (km/h) (Normally read from category)</summary>
        public static readonly double LessThanThisSpeedEqualsStopped = 3;

        /// <summary>Default tooltip format string</summary>
        public static readonly string TooltipFormatString =
            "{time:15} {avgspeed:15} {starttime:25} {distance:10} {name:40} {elevation:10} {stoppedtime:10}";
        public static readonly string TooltipAllFormatString =
            "time, avgspeed, avgpace, starttime, name, distance, elevation";

        /// <summary>Folder where the preferences file is located</summary>
        public static readonly string FilePath = string.Format("{0}{1}{2}{3}{4}{5}",
                                                               Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Path.DirectorySeparatorChar,
                                                               "SportTracks", Path.DirectorySeparatorChar, Properties.Resources.SystemAppName, Path.DirectorySeparatorChar);

        public static readonly string FileName = "preferences.xml";

        public static readonly string FullFileName = FilePath + FileName;

    }
}